package day05;

public class Arraydemo3 {
    public static void main(String[] args) {
        int[]arr=new int[5];
        System.out.println("数组的长度"+arr.length);
        System.out.println("数组的第一个元素"+arr[0]);
        arr[0]=100;
        arr[1]=200;
        arr[2]=300;
        arr[3]=400;
        arr[4]=500;
        System.out.println(arr[2]);
        System.out.println(arr[1]);
        System.out.println(arr[3]);
        System.out.println(arr[arr.length-1]);
        System.out.println(arr[arr.length-1]);
        System.out.println(arr[0]);
        System.out.println(arr[arr.length-1]);

    }


}
